﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
//using Logger = Garlic.CC.Utility.Logger;
using Garlic.DAL;
using Garlic.Infrustructure;
using DAL.BusinessDeal;
namespace Garlic.BLL.BusinessDeal
{
   public class StVesselBerthManager
    {
       private StVesselBerthDAL dal = new StVesselBerthDAL();

       /// <summary>
       /// 新增 修改 删除 靠泊
       /// </summary>
       /// <param name="P_Operation_Type"></param>
       /// <param name="p_SCD_ID"></param>
       /// <param name="P_VBT_PBTHDT"></param>
       /// <param name="P_VBT_PDPTDT"></param>
       /// <param name="P_VBT_PBTHDRAFT"></param>
       /// <param name="P_VBT_PBTHDRAFT_P"></param>
       /// <param name="P_VBT_PBTHDRAFT_A"></param>
       /// <param name="P_VBT_PDPTDRAFT"></param>
       /// <param name="P_VBT_PDPTDRAFT_P"></param>
       /// <param name="vVBT_PDPTDRAFT_A"></param>
       /// <param name="P_VBT_TER_ID"></param>
       /// <param name="P_USER_ID"></param>
       /// <returns></returns>
       public string InsertUpdateToTable(int P_Operation_Type, string p_SCD_ID, DateTime P_VBT_PBTHDT, DateTime P_VBT_PDPTDT,
                   string P_VBT_PBTHDRAFT, string P_VBT_PBTHDRAFT_P, string P_VBT_PBTHDRAFT_A, string P_VBT_PDPTDRAFT
                 , string P_VBT_PDPTDRAFT_P, string vVBT_PDPTDRAFT_A, string P_VBT_TER_ID, string P_USER_ID, string VBT_ID, string P_VBT_LDUNLDFG)
       {
           try
           {
               return dal.InsertUPdateToTable(P_Operation_Type, p_SCD_ID, P_VBT_PBTHDT, P_VBT_PDPTDT, P_VBT_PBTHDRAFT, P_VBT_PBTHDRAFT_P, P_VBT_PBTHDRAFT_A,
                  P_VBT_PDPTDRAFT, P_VBT_PDPTDRAFT_P, vVBT_PDPTDRAFT_A, P_VBT_TER_ID, P_USER_ID, VBT_ID, P_VBT_LDUNLDFG);
           }
           catch (Exception e)
           {
               Logger.Instance.Error(this, "写入数据出错", e);
               throw;
           }
       }
     
    }
}
